package com.lagou.service.dubbo;

import com.lagou.component.EmailHelper;
import com.lagou.service.IMessageDubboService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @description: MessageServiceImpl
 * @author: zhuyahui
 * @date: 2021/5/25 22:25
 **/
@Service
public class MessageDubboServiceImpl implements IMessageDubboService {

    @Autowired
    EmailHelper emailHelper;

    @Override
    public boolean sendmail(String email, String code) {
        emailHelper.sendMail(email,"邮箱注册验证码","你好：你的注册验证码是："+code+" 有效期为10分钟");
        return true;
    }
}
